package com.ghxxzx.dagl.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ghxxzx.dagl.entity.Daxx;
import com.ghxxzx.dagl.entity.DaxxRg;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Repository
public interface DaxxRgMapper extends BaseMapper<DaxxRg> {
    @Select("SELECT * FROM `daxx_rg` where dabh=#{dabh} LIMIT 1")
    DaxxRg findByDabh(String dabh);

    @Select("SELECT type_id FROM daxx_rg WHERE dabh=#{dabh}")
    Integer findByDanbh(@Param("dabh")String dabh);
}
